package com.qiu.config;

import com.qiu.util.general.PropertiesUtil;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author Captain
 */
@Data
@Component
public class AlipayConfig {
    /**
     * 沙箱appId
     */
    public static final String APPID = "9021000143687213";

    /**
     * 请求网关  固定
     */
    public static final String URL = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * 编码
     */
    public static final String CHARSET = "UTF-8";

    /**
     * 返回格式
     */
    public static final String FORMAT = "json";

    /**
     * RSA2
     */
    public static final String SIGNTYPE = "RSA2";

    /**
     * 异步通知地址
     */
    public static final String NOTIFY_URL = "http://" + "2errfi.natappfree.cc" + "/alipay/notify";

    /**
     * 同步地址
     */
    public static final String RETURN_URL = "http://" + PropertiesUtil.getDomain() + "/alipay/success";

    /**
     * 应用私钥 pkcs8格式
     */
    public static final String RSA_PRIVATE_KEY =
            "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCWKV9VoZUKgu9Viqrr1Yi/b3i3EVNcpm6uEDkWvFuqmnSAR8d7Qml2nmr23QOh3QSDQXCBRT0UJEDLgeJw44GSi3K2fBWk4iyDudBTY59e1FysQj1mLQFk7AOWYEisikN8VBGdNfcio0kgl8BCGQuJemN2CPYd2zVXb3h3T6M+T/IFHbB/+6IO5ftSM5Jyrx/Scn4fwUU0PcILB1xDqGfzU8GLxfk9DRhhDe4RspZPk2HlJ0TZuNXxSp3IWoLRkGSLtRD5N30wS2InJxk/V1Fc3WhvzKOVz2JUKRrguFNWW5ImpcT0DFpzDwrzKb1pjoZkAe3PRmegO6tHUSkvyF7FAgMBAAECggEAORM0p0mpartl2O/CE62wMoNeMMcnFlo0S3jjGh8yAGCA05l02wbdKzb/lSFglg95/aHL73avxo4ZCsEtnpb60wap7W6wk2FcZh0kb+23z8WMC/WJfOKyWvfSTT//n4VWLVWO9GBktQe3beoAK591YSXh1CWH1sVROxCli0P72lzXi2eNnqGcH+m65j4kw6r1ZUmSrnqjpvypK4X2C00tRmN0dmYRLjwrUWDdF8jz18xPwKNbLFglTymYAoXgV4aW/+KnPE574mWjuQiotJPBUAMEo6HRCFwZ15tyk97KrHCNdRuULQM3teFdhzdUe6ld52z690viLIJlFr1RfU6OKQKBgQDLoyWtGZEVDJQO0I/yftFMw48XSPVOUBa004NicXrrV/n2lDgFf5eV1r+CVLepACMvcmP4576UwSvyzvh8L3NjFpFljzzlkLzRI/RDMLoTm82apAahikTiEMXWpkRO5HZgzAPzElvgX3p35FlmdoX1zOh0Qv+IctZ9SvlAQyYz6wKBgQC8xhN2gCMeL9P7LqbnMdbyz8HL10GC6KvULXk7Bp5yES3mvKlv51WNlRhmbbk4PhGM8BG2S29/iQwyxe/7xC6n+yzti/+lh345jF88R6rZXu7+NuqwpkKE1Ee45lpMeVgCKmGYkiwUxm4fvnWeDlSpAA9Gp0ar8+ZdmQBzRFD8DwKBgBK6Jz3bCw+ff4I5RfOsG/1uQpuGlyCjluL8TKnh+8bm6VL24IwI5tzdyfDnb5h4LcQwRedfEJTHiw4iYJGzH25uZeKsIJKQE/07zDvdoE8rVeYxzXZPq/QKTNdnpQKIWiaevII/HvnsbevWsS4OGlW3iW0fuDZJMVaGbZOuWTYPAoGARv5bPXqtOmIUX+fInzQwOXsG0ClxGtF0JcTATgGMPyvUzmzvcAVZOHj1BziGqu803INAtgUitp0M+F9WhKHgRg6BdAjtqQwO3Ye8HUh6qWs5iGOQ2cR9ScUoABKprQ8JmS7lK2L1rw59RfTz+PA8yJ4cIJ8yReLhJRwwfikYJ+MCgYAb5AqnEmQ8MhU/ZAD5WGyz3G/T39D0MWMMwHRpamNrURfJ9AgfqNLmpmolL5xRhV+Aq7GzaIyLy+YNCDEXDXA/DFFrWCZqUiEDs2mkCO1a7LNL95ZP7EoBjFL4Koj9z63dCjJQoyJOjnfLmu3nCqwxgwA13+LVZJTmH4Gs9ydwwg==";

    /**
     * 沙箱支付宝公钥
     */
    public static final String ALIPAY_PUBLIC_KEY =
            "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkf6svgjXoi91KZXJes103MbBkTdrU9IunOaDvitsd2HVOoDPa/fHzKEU5qfNwVDZvL8MpyethrzUI8T9Cf9SuvSAK+ZDDhXzeMgQQF9Egu2qbHpQydOiNiuE1sI+/9Lb+TJp2RlGFssR3qpZgBehdNlzQEsnkgOQNicrCkiHch1igMdKrJVysu/r1BE3NUzK/+pIUoQXTEYkEVN8PQZItzTwNPFvlEEpZtUA3qBKFa0ehiVv6TxCRie+OBYhjjvc3ckDpnfAx0jYJJ8t2qworKys5TjuFgczWK9JTejq02u/X9alkUiX7C8yt+G+he3fLXXTXwIXautg/QWL9EZ6WwIDAQAB";

    private AlipayConfig() {
    }
}
